#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_mixer.h>
int deCube()
{ const int MAX = 6, MIN = 1;
int f ;
srand(time(NULL));
f=rand()%((MAX - MIN + 1)) + MIN;
printf("%d",f);

return f;}

int CasesJouer(int x, int y,int z)
{

    if(z==0&&(((x==6) && (y==3))||((x==3)&&(y==6))))
       {z=26;}
    else if(z==0&&(((x==5)&&(y==4))||((x==4)&&(y==5))))
        {z=53;}
        else if ((x+y+z)>63)
        {z-=((x+y+z)-63);}
       else
       {z+=x+y;}

    if(z==6)
     z=12;
    else if(z==42)
    z=30;
    else if(z==58)
    z=0;

    return z;

}
